package com.zkthink.ceres.shoppingcart.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 购物车表
 * </p>
 *
 * @author vivi.huang
 * @since 2020-05-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShoppingCartSaveDTO", description = "购物车表")
public class ShoppingCartSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long memberId;
    /**
     * session
     */
    @ApiModelProperty(value = "session")
    @Length(max = 255, message = "session长度不能超过255")
    private String sessionId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Long skuId;
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    @Length(max = 120, message = "商品名称长度不能超过120")
    private String productName;
    /**
     * 零售价
     */
    @ApiModelProperty(value = "零售价")
    @Length(max = 120, message = "零售价长度不能超过120")
    private String skuName;
    /**
     * 本店价(进货价)
     */
    @ApiModelProperty(value = "本店价(进货价)")
    private Long skuPrice;
    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量")
    private Integer buyNum;
    /**
     * 购物车选中状态
     */
    @ApiModelProperty(value = "购物车选中状态")
    private Integer selected;
    /**
     * 加入购物车的时间
     */
    @ApiModelProperty(value = "加入购物车的时间")
    private Integer addTime;
    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @ApiModelProperty(value = "逻辑删除 1-删除 0-未删除")
    private Integer isDelete;

}
